import { useAxios } from "@/hooks/useAxios"

const request = useAxios()

// 登录
export const authLogin = (data: any) => {
  return request.post({
    url: '/auth/login',
    data
  })
}

export const getRouters = () => {
  return request.post({
    url: '/menu/getRouters'
  })
}
